{% extends "kit" %}

{% block main %}
<div class="{% if tests.getstatus %}tests_ok{% else %}tests_ko{% endif %}">
    <h2>{{ kit.id }} - Tests unitaires</h2>

    <p class="tests_pass">{{ tests.getpasscount }} tests réussis</p>

    <p class="tests_fails">{{ tests.getfailcount }} tests en échecs.</p>

    <p class="tests_exceptions">{{ tests.getexceptioncount }} exceptions</p>

    {% if tests.messages %}
    <h3>Messages</h3>
    <dl>{% for msg in tests.messages %}
        <dt>{{ forloop.key }}</dt>
        <dd>{{ msg }}</dd>{% endfor %}
    </dl>
    {% endif %}

    {% comment %}<pre>{{ tests|dump }}</pre>{% endcomment %}
</div>
{% endblock %}
